package spring1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test1 {

	public static void main(String[] args){
		ApplicationContext context = new  ClassPathXmlApplicationContext("111.xml");
		Application a = context.getBean("application", Application.class);

		a.getFileWriterService().write("bbbbbb");

		((ConfigurableApplicationContext)context).close();
	}
}
